package com.vallis.lotteryonline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vallis
 * @since 2020-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayDetail extends Model<PayDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信用户手机显示订单号
     */
    private String transactionId;

    /**
     *  支付成功
     */
    private Integer returnCode;

    /**
     * 每次金额
     */
    private Integer totalFee;

    /**
     * 客户订单号
     */
    private String outTradeNo;

    /**
     *  客户手机号
     */
    private String userPhone;

    /**
     *  payjs订单号 
     */
    private String payjsOrderId;

    /**
     *  插入时间
     */
    private LocalDateTime insertDate;

    /**
     *  支付成功时间 
     */
    private String timeEnd;

    /**
     *  支付类型(默认值为WeChat )
     */
    private String type;

    /**
     *  用户openid
     */
    private String openid;

    /**
     * 会员id
     */
    @TableId(type = IdType.UUID)
    private String id;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
